package cn.com.code.design;

import cn.com.code.design.mq.OrderMq;
import cn.com.code.design.mq.PopOrderDelivered;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhengpei
 * @date 2021/9/19
 */
public class PopOrderDeliverdService {

  private static final Logger logger = LoggerFactory.getLogger(PopOrderDeliverdService.class);

  public void onMessage(String message) {
    PopOrderDelivered popOrderDelivered = JSONObject.parseObject(message, PopOrderDelivered.class);
    logger.info("popOrderDelivered:[{}]", popOrderDelivered.toString());
  }


}
